import Notify from "devextreme/ui/notify";
//intl('ac.selectSomeFile', '请选择一些文件再试!')
//信息单元
/*   <Toast visible={toastVisible} message={intl('ac.selectSomeFile', '请选择一些文件再试!')} type="error" position="center" width="500px" /> */
export function msgInfo(msg, displayTime, position, width) {
    Notify({
        message: msg,
        position: position || "center",
        width: width || "500px",
        closeOnClick: true,
    }, "info", displayTime || 3000);
}
export function msgError(msg, displayTime, position, width) {
    Notify({
        message: msg,
        position: position || "center",
        width: width || "500px",
        closeOnClick: true,
    }, "error", displayTime || 5000);
}
export function msgWaring(msg, displayTime, position, width) {
    Notify({
        message: msg,
        position: position || "center",
        width: width || "500px",
        closeOnClick: true,
    }, "warning", displayTime || 5000);
}
export function msgSuccess(msg, displayTime, position, width) {
    Notify({
        message: msg,
        position: position || "center",
        width: width || "500px",
        closeOnClick: true,
    }, "success", displayTime || 3000);
}
